package com.xiangwei.view;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 图表对象
 * @author David
 *Date 2015-7-15
 */
public class EchartsView implements Serializable{
	
	private static final long serialVersionUID = 2070944204865393363L;
	
	//图标标题与副标题
	private Map<String,String> title;
	
	//气泡提示框，常用于展现更详细的数据
	private Map<String,String> tooltip;
	
	//图例，表述数据和图形的关联
	private Map<String,String[]> legend;
	
	//辅助工具箱，辅助功能，如添加标线，框选缩放等
	private Map<String,Object> toolbox;
	
	//是否启用拖拽重计算特性，默认关闭false
	private boolean calculable;
	 
	//直角坐标系中的横轴
	private Map<String,Object> xAxis;
	
	//直角坐标系中的纵轴
	private Map<String,Object> yAxis;
	
	//数据系列，一个图表可能包含多个系列，每一个系列可能包含多个数据
	private List<SeriesView> series;

	public Map<String, String> getTitle() {
		return title;
	}

	public void setTitle(Map<String, String> title) {
		this.title = title;
	}

	public Map<String, String> getTooltip() {
		return tooltip;
	}

	public void setTooltip(Map<String, String> tooltip) {
		this.tooltip = tooltip;
	}

	public Map<String, String[]> getLegend() {
		return legend;
	}

	public void setLegend(Map<String, String[]> legend) {
		this.legend = legend;
	}

	public Map<String, Object> getToolbox() {
		return toolbox;
	}

	public void setToolbox(Map<String, Object> toolbox) {
		this.toolbox = toolbox;
	}

	public boolean isCalculable() {
		return calculable;
	}

	public void setCalculable(boolean calculable) {
		this.calculable = calculable;
	}

	public Map<String, Object> getXAxis() {
		return xAxis;
	}

	public void setXAxis(Map<String, Object> xAxis) {
		this.xAxis = xAxis;
	}

	public Map<String, Object> getYAxis() {
		return yAxis;
	}

	public void setYAxis(Map<String, Object> yAxis) {
		this.yAxis = yAxis;
	}

	public List<SeriesView> getSeries() {
		return series;
	}

	public void setSeries(List<SeriesView> series) {
		this.series = series;
	}

}
